<?php
class Trainmap extends MY_Controller{
    public function __construct() {
        parent::__construct();
        $this->load->model('model_train');
    }
	public function index(){
		$data['title'] = "Train map";
		$data['abouts'] = $this->abouts();
		$data['listtrains'] = $this->listtrains(20);
		$data['result'] = $this->model_train->getmap();
		//$this->debug($data['result']);
		$this->load->view('trainmap/layout',$data);
	}
}
?>